/*通配选择，内边距去除*/
*{
    margin: 0;
    padding: 0;
}
#app{
    width: 100vw;
    height: 100vh;
}
/*弹性布局水平*/
.flex-row{
    display: flex;
    flex-direction: row;
}
/*弹性布局垂直*/
.flex-column{
    display: flex;
    flex-direction: column;
}
/*弹性布局居中*/
.flex-center{
    display:flex;
    justify-content: center;
    align-items: center;
}
#appBg{
    position:fixed;
    top:0;
    left: 0;
    height: 100%;
    filter:blur(50px);
    opacity: 0.5;
    z-index: -1;
}
.header{
    flex:2;
    border-bottom: 1px solid rgba(255,255,255,0.8);
    color: #fff;
    font-weight: bolder;
    background: #aaa69d;

}
.home,
.share{
    flex: 1;
}
.music-name{
    flex:4;
}
/*唱片部分样式*/
.body{
    flex:5;
}
.cover{
    position: relative;
    width: 20rem;
    height: 20rem;
    animation:loop 5s infinite linear;
    animation-play-state: paused;
}
.playing{
    animation-play-state: running;
}
#coverImg{
    width:45%;
}
.cover>img{
    position: absolute;
}
.disc{
    width:80%;
}
.footer{
    flex:2;
    padding:20px;
}
.time-box,.progress-box{
    flex:1;
    color: #ffffff;
}
.time-box>div{
    flex:1;
}
.time-total{
    text-align: right;
}
.progress-bg{
    height: 1px;
    border: 1px solid rgba(255,255,0,2);
    width:100%;
}
.progress{
    position: relative;
    background:#ffffff;
    width: 35%;
    height:100%;
    /*盒子阴影*/
    box-shadow: 0 0 5px #ffffff;
}
.thumb{
    position: absolute;
    right: -5px;
    top: -5px;
    width:10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffffff;
}

.btn-box{
    flex:5;
}
.btn-box>button{
    border: 0;
    color: #ffffff;
    background: transparent;
}
.btn-loop,
.btn-list{
    flex: 1;
}
.btn-next,.btn-prev{
    flex:2
}
.btn-play{
    flex: 3;
}

.btn-close{
    position: fixed;
    right: 5px;
}
#musiclist{
    display: none;
    position: fixed;
    top: 20%;
    left: 0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.5);
    overflow-y:scroll;
}
.musiclist>li{
    height: 3rem;
    line-height: 3rem;
    color:#fff;
    font-size:0.8rem;
}
.musiclist>li:not(:last-child){
    border-bottom: 1px dotted rgba(255,255,255,0.5);
}
/*自定义动画*/
@keyframes loop {
    from{
        transform:rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}
/*提示层*/
#tips{
    position: fixed;
    //相对屏幕左侧
    left:50%;
    bottom:25%;
    z-index: 9999;
    padding: 10px 20px;
    font-size: 0.9rem;
    color:#fff;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    //相对自身长度往左移动50%
    transform: translateX(-50%);
    display: none;
}
